package com.bolt.admin.test;

import com.bolt.convention.data.ResultMessage;
import com.bolt.convention.data.Results;
import com.bolt.support.desensitization.annotation.DynamicSensitive;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test/sensitive")
public class SensitiveController {

    @GetMapping("/aaaa")
    public ResultMessage<@DynamicSensitive Dtest> test() throws Exception {
        Dtest test = new Dtest();

        test.setName("米超");
        test.setEmail("michao66@126.com");
        test.setTel("13938580776");
        return Results.success(test);
    }
}